<?php
include __SITE_PATH . '/configuracion/servidor.php';
include __SITE_PATH . '/configuracion/parametros.php';
include __SITE_PATH . '/configuracion/constantes.php';

include __SITE_PATH . '/nucleo/Controller.php';
include __SITE_PATH . '/nucleo/Registry.php';
include __SITE_PATH . '/nucleo/Router.php';
include __SITE_PATH . '/nucleo/Template.php';
include __SITE_PATH . '/nucleo/Campo.php';

include __SITE_PATH. '/lacazan/LcznBD.php';
include __SITE_PATH. '/lacazan/LcznEntidadVO.php';
include __SITE_PATH. '/lacazan/LcznEntidadDAO.php';
include __SITE_PATH. '/lacazan/LcznController.php';
include __SITE_PATH. '/lacazan/LcznRender.php';

include __SITE_PATH . '/libreria/Dao.php';
include __SITE_PATH . '/libreria/Util.php';
include __SITE_PATH . '/libreria/Sql.php';
include __SITE_PATH . '/libreria/Html.php';
include __SITE_PATH . '/libreria/Url.php';
include __SITE_PATH . '/libreria/Validar.php';

LcznBD::cargaModelo();

function __autoload($class_name) {

	$filename = $class_name . '.php';
	$file = __SITE_PATH . '/mvc/modelo/' . $filename;

	if (file_exists($file) == false) {
		return false;
	}

	include ($file);
}

$registry = new registry;

?>
